-
Notifications
You must be signed in to change notification settings - Fork 482
announcements: Fix NewAnnouncementBanner & trigger notification on status update #5376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the contribution! |
Changed Packages
|
Signed-off-by: Hope Hadfield <[email protected]> Signed-off-by: Mattia <[email protected]>
….4 (backstage#5340) Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
… v2.23.4 (backstage#5368) Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
… status, navigate to root on edit complete Signed-off-by: Mattia <[email protected]>
82bcbe9 to
2463ab0
Compare
gaelgoth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @matdtr, thanks for fixing this!
The tests are failing due to the change in the active property
| page?: number; | ||
| max?: number; | ||
| active?: boolean; | ||
| active?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to keep it as a boolean
| active?: string; | |
| active?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gaelgoth, i do agree but on the GET path the backend receives the value as string that’s why the switch of type.
if kept as boolean it would fail as reported here #5235.
Let me know how you would like to address it, if revert the type or fix the tests.
PS.
Sorry maintainers not sure why all you got tagged in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaah, I didn’t realize it was the endpoint query, which is always a string with express. That makes sense, let’s treat it as a string for the "external" type contract in the http query and update the tests accordingly.
I think the rebase ended up modifying some existing commits. Can you please fix this. Or totally fine to just spin up a fresh PR instead 👍🏾
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, created a new PR #5519. Will close this
Hey, I just made a Pull Request!
Fixed handling of
activeprop in NewAnnouncementBannerExtended signal and notification on update when the annoucencement is activated
Updated
EditAnnoucementPageto navigate to root path as the announcement creation pageAll items reported in #5235
✔️ Checklist
Signed-off-byline in the message. (more info)